<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
</head>
<style>
    *{
        box-sizing:border-box;
    }
    div{
        display: block;
    }
    body{
        font-family:"Microsoft Yahei",'新宋体';
        font-size:14px;
        line-height: 1.42857143;
        color:#333;
    }
    h1{
        font-size: 18px;
        color: #333333;
        font-weight: bold;
    }
    .container{
        background:#ffffff;
        margin:50px auto;
        padding: 20px 0;
        width:1024px;
    }
    .header-title{
        border-bottom:1px solid #dedede;
        margin-bottom: 10px;
    }
    .text-center{
        text-align: center;
    }
    .progress-box{
        padding: 10px;
    }
    .progress{
        height: 30px;
        margin-bottom: 20px;
        overflow: hidden;
        background-color: #f5f5f5;
        border-radius: 4px;
    }
    .progress-bar{
        line-height:30px;
        font-size: 14px;
        float: left;
        height: 100%;
        color:#fff;
        text-align: center;
        width: 25%;
    }
    .content{
        padding: 0 20px;
    }
    .content-table{
        width: 100%;
        max-width:100%;
        margin-bottom: 20px;
        background-color: transparent;
        border-spacing: 0;
        border-collapse: collapse;
        display: table;
        border-color: grey;
    }
    nav{
        padding-top: 8px;
        padding-bottom: 8px;
        color: #777777;
        text-align: center;
    }
    thead{
        display: table-header-group;
        vertical-align: middle;
        border-color: inherit;
    }
    tbody{
        display: table-row-group;
        vertical-align: middle;
        border-color: inherit;
    }
    tr{
        display: table-row;
        vertical-align: inherit;
        border-color: inherit;
    }
    th{
        display: table-cell;
        font-weight: bold;
        vertical-align:bottom;
        border-bottom: 2px solid #dddddd;
        text-align:left;
    }
    td{
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border-top:1px solid #dddddd;
        display:table-cell;
    }
    .footer-center{
        text-align: center;
    }
    .zz-btn{
        display:inline-block;
        padding: 6px 12px;
        margin-bottom: 0;
        font-size: 14px;
        font-weight: normal;
        line-height:1.42857143;
        text-align:center;
        white-space:nowrap;
        vertical-align:middle;
        color:#333333;
        touch-action:manipulation;
        cursor: pointer;
    }
</style>
<body style="background: rgb(230, 234, 234);">
    <div class="container">
        <div class="main">
            <div class="header-title text-center">
                <h1>{$title}</h1>
            </div>
            <div class="progress-box">
                <div class="progress">
                    <div class="progress-bar progress-check" style="background-color: #00b7ee;"><span>环境检查</span></div>
                    <div class="progress-bar progress-install" style="background-color: #337ab7;"><span>数据库安装</span></div>
                    <div class="progress-bar progress-param" style="background-color: #5cb85c;"><span>参数配置</span></div>
                    <div class="progress-bar progress-complete" style="background-color: #5bc0de;"><span>安装完成</span></div>
                </div>
            </div>
            <div class="content">
                <table class="content-table">
                    <nav>
                        <h1>环境检查</h1>
                    </nav>
                    <thead>
                        <tr>
                            <th>名称</th>
                            <th>所需配置</th>
                            <th>当前配置</th>
                        </tr>
                    </thead>
                    <tbody>
                        {volist name="$envs" id="es"}
                            <tr>
                                <td>{$es.name}</td>
                                <td>{if $es.is_limit == 0}不限制{else/}{$es.is_limit}{/if}</td>
                                <td>{$es.current}</td>
                            </tr>
                        {/volist}
                    </tbody>
                </table>
                <table class="content-table">
                    <nav>
                        <h1>目录/文件权限检查</h1>
                    </nav>
                    <thead>
                        <tr>
                            <th>目录/文件</th>
                            <th>所需状态</th>
                            <th>检查结果</th>
                        </tr>
                    </thead>
                    <tbody>
                    {volist name="$dirFiles" id="ds"}
                    <tr>
                        <td>{$ds.name}</td>
                        <td>√</td>
                        <td>{if $ds.writeable == 1}√{else/}×{/if}</td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <table class="content-table">
                    <nav><h1>函数支持检测</h1></nav>
                    <thead>
                        <tr>
                            <th>函数名称</th>
                            <th>检查结果</th>
                        </tr>
                    </thead>
                    <tbody>
                        {volist name="funcs" id="fs"}
                        <tr>
                            <td>{$fs.name}</td>
                            <td>{if $fs.func == 1}√{else/}×{/if}</td>
                        </tr>
                        {/volist}
                    </tbody>
                </table>
            </div>
            <div class="footer">
                <div class="footer-center">
                    <button type="button" id="step" class="zz-btn">下一步</button>
                </div>

            </div>
        </div>
    </div>
</body>
<script src="/static/admin/lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>


<script>
    $("#step").click(function(){
        window.location.href = '/index/db';
    });


</script>
</html>